# coding:utf-8

from django.contrib import admin
import models
from django.contrib.contenttypes import generic




class IPageFieldInLine ( generic.GenericTabularInline ):
    model = models.IPageField


class IDataTextFieldAdmin ( admin.ModelAdmin ):
    inlines = [
        IPageFieldInLine,
    ]


    
admin.site.register(models.IDataPage)
#admin.site.register(models.IDataImageField)



admin.site.register ( models.IDataTextField, IDataTextFieldAdmin )



